package ch.exm.storm.test.domain.impl;

import java.util.Set;

import ch.exm.storm.test.domain.Customer;
import ch.exm.storm.test.domain.Order;

public class CustomerImpl extends AbstractDomainObject implements Customer {

	private String name;
	
	private Set<Order> orders;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Order> getOrders() {
		return orders;
	}

	public void setOrders(Set<Order> orders) {
		this.orders = orders;
	}
	
	@Override
	public String toString() {
		return "Customer[" + getId() + "] is " + getName();
	}
}
